package org.jeecg.modules.health_code.entity.response;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jeecg.modules.health_code.entity.response.bo.BaseResponse;
import org.jeecg.modules.health_code.entity.response.bo.RealnameResponse;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "获取实名认证响应参数")
public class ApiRealnameResponse extends BaseResponse
{
    private static final long serialVersionUID = 6887509153307137801L;
    
    @ApiModelProperty(value = "响应参数")
    private RealnameResponse bizContent;
    
    public static ApiRealnameResponse packageResponse(Boolean sfyz,String rzdj ,Long timestamp, Long startTime,Long endTime,Long thirdPartyTime) {
        ApiRealnameResponse apiRealnameResponse = new ApiRealnameResponse();
        RealnameResponse realnameResponse=new RealnameResponse();
        realnameResponse.setSfyz(sfyz);
        realnameResponse.setRzdj(rzdj);
        apiRealnameResponse.setBizContent(realnameResponse);
        apiRealnameResponse.setBusConsumeTime(endTime - startTime);
        apiRealnameResponse.setNetConsumeTime(startTime - timestamp);
        apiRealnameResponse.setThirdPartyTime(thirdPartyTime);
        return apiRealnameResponse;
    }
    
}
